<?php

class JS
{
	var $parent = null;

	function JS($parent = '')
	{
		$this->parent = $parent;
	}

	function doRequest($file, $type, $params)
	{

	}

	function display($type = '')
	{
		if (empty($type))
		{
			return "$('".$this->parent->ID."').style.display";
		} else {
			return "$('".$this->parent->ID."').style.display = ".$type.";";
		}
	}

	function value($value = '')
	{
		if (empty($value))
		{
			return "$('".$this->parent->ID."').value";
		} else {
			return "$('".$this->parent->ID."').value = ".$value.";";
		}
	}
}

?>